/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.testis.gui.mvc.model.testdesign;

//Atof libraries.
import org.testis.gui.mvc.controller.testdesign.ConditionTextEditorController;
import org.testis.gui.mvc.model.AbstractModel;

/**
 *
 * @author barisergun
 */
public class ConditionTextEditorModel extends AbstractModel{
    private String m_conditionText = new String("");
    private Integer m_conditionId;
    private String m_evaluatedText = new String("");
    private String m_evaluationResult = new String("");
    private Boolean m_evaluatable;

    public ConditionTextEditorModel(){

    }

    public Integer getConditionId() {
        return m_conditionId;
    }

    public void setConditionId(Integer conditionId) {
     
        Integer oldValue = m_conditionId;
        m_conditionId = conditionId;
        firePropertyChange(ConditionTextEditorController.CHANGE_CONDITION_ID,
                           oldValue,
                           m_conditionId);
    }

    public String getConditionText() {
        return m_conditionText;
    }

    public void setConditionText(String conditionText) {
        String oldValue = m_conditionText;
        m_conditionText = conditionText;
        firePropertyChange(ConditionTextEditorController.CHANGE_CONDITION_TXT,
                           oldValue,
                           m_conditionText);
    }
    
    public String getEvaluatedText(){
        return m_evaluatedText;
    }
    public void setEvaluatedText(String evaluatedText){
        String oldValue = m_evaluatedText;
        m_evaluatedText = evaluatedText;
        firePropertyChange(ConditionTextEditorController.CHANGE_EVALUATED_TXT,
                           oldValue,
                           m_evaluatedText);
    }

    public String getEvaluationResult() {
        return m_evaluationResult;
    }

    public void setEvaluationResult(String evaluationResult) {
        String oldValue = m_evaluationResult;
        m_evaluationResult = evaluationResult;
        firePropertyChange(ConditionTextEditorController.CHANGE_EVALUATION_RESULT_TXT,
                           oldValue,
                           m_evaluationResult);

    }

    public Boolean getEvaluatable() {
        return m_evaluatable;
    }

    public void setEvaluatable(Boolean evaluatable) {

        Boolean oldValue = m_evaluatable;
        m_evaluatable = evaluatable;
        firePropertyChange(ConditionTextEditorController.CHANGE_EVALUATION_BOOLEAN,
                           oldValue,
                           m_evaluatable);
        
    }




    
}
